import com.tanhua.dubbo.DubboDBApplication;
import com.tanhua.dubbo.mappers.UserInfoMapper;
import com.tanhua.model.domain.UserInfo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ck
 * @date 2021/11/21 1:18
 */
@SpringBootTest(classes = DubboDBApplication.class)
@RunWith(SpringRunner.class)
public class test {

    @Autowired
    private UserInfoMapper userInfoMapper;


    @Test
    public void test(){
        ArrayList<Long> longs = new ArrayList<>();
        longs.add(1L);
        longs.add(1L);
        System.out.println(longs);
        List<UserInfo> list = userInfoMapper.selectBatchIds(longs);
        for (UserInfo userInfo : list) {
            System.out.println(userInfo);
        }
    }
}
